import {
    HTTP,
} from "@/plugins/axios";

// 获取
export const GetWorkList= data => HTTP(`/admin/work/work_status`,data,"GET");
// 根据id搜索
export const GetWorkListById= data => HTTP(`/admin/work/${data.search}`,data.page,"GET");
// 根据姓名搜索
export const GetWorkListByName= data => HTTP(`/admin/work/workName/${data.search}`,data,"GET");
// 添加
export const AddWorkList= data => HTTP(`/admin/publish/work`,data,"POST");
// 删除
export const DeleteWorkList= data => HTTP(`/admin/delete/work/${data}`,data,"DELETE");
// 修改
export const UpdateWorkList= data => HTTP(`/admin/update/work`,data,"PUT");
//审核通过
export const PassWork= data => HTTP(`/admin/work/work_status/pass/${data}`,data,"PATCH");
//审核驳回
export const RejectWork= data => HTTP(`/admin/work/work_status/reject/${data}`,data,"PATCH");